package com.surenpi.jenkins.client.computer;

import com.surenpi.jenkins.client.job.Job;
import java.util.List;

public class LabelWithDetails extends Job {
   String name;
   List actions;
   List clouds;
   String description;
   Integer idleExecutors;
   List nodes;
   String nodeName;
   Boolean offline;
   List tiedJobs;
   Integer totalExecutors;
   List propertiesList;

   public String getName() {
      return this.name;
   }

   public List getActions() {
      return this.actions;
   }

   public List getClouds() {
      return this.clouds;
   }

   public String getDescription() {
      return this.description;
   }

   public Integer getIdleExecutors() {
      return this.idleExecutors;
   }

   public List getNodes() {
      return this.nodes;
   }

   public String getNodeName() {
      return this.nodeName;
   }

   public Boolean getOffline() {
      return this.offline;
   }

   public List getTiedJobs() {
      return this.tiedJobs;
   }

   public Integer getTotalExecutors() {
      return this.totalExecutors;
   }

   public List getPropertiesList() {
      return this.propertiesList;
   }

   public boolean equals(Object o) {
      if (this == o) {
         return true;
      } else if (o != null && this.getClass() == o.getClass()) {
         if (!super.equals(o)) {
            return false;
         } else {
            LabelWithDetails that = (LabelWithDetails)o;
            if (this.actions != null) {
               if (!this.actions.equals(that.actions)) {
                  return false;
               }
            } else if (that.actions != null) {
               return false;
            }

            if (this.clouds != null) {
               if (!this.clouds.equals(that.clouds)) {
                  return false;
               }
            } else if (that.clouds != null) {
               return false;
            }

            if (this.description != null) {
               if (!this.description.equals(that.description)) {
                  return false;
               }
            } else if (that.description != null) {
               return false;
            }

            if (this.idleExecutors != null) {
               if (!this.idleExecutors.equals(that.idleExecutors)) {
                  return false;
               }
            } else if (that.idleExecutors != null) {
               return false;
            }

            if (this.name != null) {
               if (!this.name.equals(that.name)) {
                  return false;
               }
            } else if (that.name != null) {
               return false;
            }

            if (this.nodeName != null) {
               if (!this.nodeName.equals(that.nodeName)) {
                  return false;
               }
            } else if (that.nodeName != null) {
               return false;
            }

            if (this.nodes != null) {
               if (!this.nodes.equals(that.nodes)) {
                  return false;
               }
            } else if (that.nodes != null) {
               return false;
            }

            if (this.offline != null) {
               if (!this.offline.equals(that.offline)) {
                  return false;
               }
            } else if (that.offline != null) {
               return false;
            }

            if (this.propertiesList != null) {
               if (!this.propertiesList.equals(that.propertiesList)) {
                  return false;
               }
            } else if (that.propertiesList != null) {
               return false;
            }

            if (this.tiedJobs != null) {
               if (!this.tiedJobs.equals(that.tiedJobs)) {
                  return false;
               }
            } else if (that.tiedJobs != null) {
               return false;
            }

            if (this.totalExecutors != null) {
               if (!this.totalExecutors.equals(that.totalExecutors)) {
                  return false;
               }
            } else if (that.totalExecutors != null) {
               return false;
            }

            return true;
         }
      } else {
         return false;
      }
   }

   public int hashCode() {
      int result = super.hashCode();
      result = 31 * result + (this.name != null ? this.name.hashCode() : 0);
      result = 31 * result + (this.actions != null ? this.actions.hashCode() : 0);
      result = 31 * result + (this.clouds != null ? this.clouds.hashCode() : 0);
      result = 31 * result + (this.description != null ? this.description.hashCode() : 0);
      result = 31 * result + (this.idleExecutors != null ? this.idleExecutors.hashCode() : 0);
      result = 31 * result + (this.nodes != null ? this.nodes.hashCode() : 0);
      result = 31 * result + (this.nodeName != null ? this.nodeName.hashCode() : 0);
      result = 31 * result + (this.offline != null ? this.offline.hashCode() : 0);
      result = 31 * result + (this.tiedJobs != null ? this.tiedJobs.hashCode() : 0);
      result = 31 * result + (this.totalExecutors != null ? this.totalExecutors.hashCode() : 0);
      result = 31 * result + (this.propertiesList != null ? this.propertiesList.hashCode() : 0);
      return result;
   }
}
